#include "cocoa/auto.h"
#include "cocoa/ccocoafdpoller.h"

#include <buola/app/cinitfunction.h>
#include <buola/io/cselectfdpoller.h>

namespace buola { namespace gui { namespace cocoa {

bool InitCocoa()
{
    io::set_main_fd_poller(new CCocoaFDPoller(get_main_event_loop()));

    return true;
}

static CInitFunction sInitCocoa(InitCocoa,L"Cocoa platform plugin",CInitFunction::PRIORITY_HIGHEST);

/*namespace cocoa*/ } /*namespace gui*/ } /*namespace buola*/ }
